import App from './App'
import Vue from 'vue'
import store from './store'

import {
	toast,
	showConfirm,
	parseTime,
	dictByKey,
	navigateTo,
	redirectTo,
	getPagePath,
	navigateBack,
	reLaunch
} from "@/utils/index.js"

Vue.prototype.toast = toast
Vue.prototype.showConfirm = showConfirm
Vue.prototype.parseTime = parseTime
Vue.prototype.dictByKey = dictByKey
Vue.prototype.navigateTo = navigateTo
Vue.prototype.redirectTo = redirectTo
Vue.prototype.getPagePath = getPagePath
Vue.prototype.navigateBack = navigateBack
Vue.prototype.reLaunch=reLaunch

import uView from './uni_modules/uview-ui'
Vue.use(uView)
// 数据混入
import mixin from './mixins/index.js'
Vue.mixin(mixin)

// 登录拦截
import './permission'

Vue.config.productionTip = false
App.mpType = 'app'

const app = new Vue({
	store,
	...App
})
app.$mount()